﻿using System.Net;

namespace CMS.Auth
{
    public interface IMyFailureReason
    {
        string GetMessage();
        HttpStatusCode GetStatusCode();
        void Init(string message, HttpStatusCode httpCode);
    }
    public class MyFailureReason : IMyFailureReason
    {
        public string GetMessage() { return Message; }
        public HttpStatusCode GetStatusCode() { return StatusCode; }
        public HttpStatusCode StatusCode { get; set; }
        public string Message { get; set; }
        public void Init(string message, HttpStatusCode httpCode)
        {
            Message = message;
            StatusCode = httpCode;
        }

    }
}
